# Contributor: rahmanshaber <rahmanshaber@yahoo.com>
# Maintainer: rahmanshaber <rahmanshaber@yahoo.com>
pkgname=coreaction
pkgver=4.3.0
pkgrel=0
pkgdesc="A side bar for showing widgets from C-Suite"
# s390x and riscv64 blocked by polkit -> libcsys
arch="all !s390x !riscv64"
url="https://gitlab.com/cubocore"
license="GPL-3.0-or-later"
makedepends="qt5-qtbase-dev libcprime-dev libcsys-dev qt5-qtsvg-dev cmake ninja"
source="$pkgname-$pkgver.tar.gz::https://gitlab.com/cubocore/coreaction/-/archive/v$pkgver/coreaction-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"
options="!check" # No tests

build() {
	cmake -B build -GNinja \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
b5ef91f6d2dca8f79d7c23caf1fc247d9faa55c41597c73589e655841a37bcded54fb15003bf6c8c9477b1ca365152ec1982cf6380cfec07780cd679de5a25f3  coreaction-4.3.0.tar.gz
"
